<?php
//app/Model/User.php

App::uses('AuthComponent', 'Controller/Component');

class Scrap extends AppModel
{
    public $name = 'Scrap';
    var $useTable = 'scraps';
    
    var $belongsTo = array(
        'User' => array(
            'recursive' => 2,
            'className' => 'User',
            'foreignKey' => 'user_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
         )
    );
    
    public $hasOne = array('Image', 'Message');
    
}
?>